<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>axios简化2</title>
		<script src="../js/axios.js"></script>
	</head>
	<body>
		<script>
		axios.defaults.baseURL="http://localhost:8080/user"
		
		async function fun(){
			let {data:a,status:b} = await axios.get("/all")
			console.log(a)
			console.log(b)
		}
		fun()
		</script>
	</body>
</html>
